/*! \file clist.h	
	This is the header file for clist.cpp
	
	This contains the ContainerList class
*/


#ifndef CONTAINER_LIST_H
#define CONTAINER_LIST_H

#include <list>
#include "container.h"

using namespace std;

/**
	\class ContainerList

	This is a container just used to group other containers.
	
	It is put into a ScrollPanel to make an item list.
*/

class ContainerList : public Container {
private:

public:
	ContainerList( Component* parent );

	virtual void childChangedSize( Component* which );

	// figure out the height that this should be without calling s
	void finalize();

	/**
	* Adds a new child to this container and updates this containers size
	*/
	void add( Component* c );

	void setSize( int newW, int newH );

};


#endif
